package com.wushi.emeeting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wushi.emeeting.dao.MeetingDAO;
import com.wushi.emeeting.model.Meeting;

@Service
public class MeetingSer {
	@Autowired
	private MeetingDAO meetingDao;
	
	public MeetingSer(){
		meetingDao=new MeetingDAO();
	}

	public void newMeeting(Meeting meeting){
		meetingDao.newMeeting(meeting);
	}
	
	public void deleteMeeting(Meeting meeting){
		meetingDao.deleteMeeting(meeting);
	}
	public void updateMeeting(Meeting meeting){
		meetingDao.updateMeeting(meeting);
	}
	
	public List<Meeting> getAllMeeting(){
		return meetingDao.getMeetings();
	}
}

